#include"GlobalDef.h"
#include"DEMOInputMng.h"

//const int DEMOInputManager::MAX_KEY_NUM = MACRO_MAX_KEY_NUM;


DEMOInputManager::DEMOInputManager()
{
	delegateKeyEvent = NULL;
}

DEMOInputManager::~DEMOInputManager()
{
	delegateKeyEvent = NULL;
}

void DEMOInputManager::ProcessInput()
{
	hgeInputEvent inputEvt;
	hge->Input_GetEvent( &inputEvt);
	
	if( delegateKeyEvent != NULL)
	{
		delegateKeyEvent( inputEvt);	
	}

}

void DEMOInputManager::SetKeyEventDelegate(bool (*OnKeyEventFunc)(hgeInputEvent theEvent))
{
	delegateKeyEvent = OnKeyEventFunc;
}